package com.asd.service.impl;

import com.asd.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.asd.service.UserService;
import com.asd.vo.User;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserDao userDao;
    @Override
    public User selectUser(User user) {
        System.out.println("进入service层");
        System.out.println(user);
        return userDao.selectUser(user);
    }
    @Override
    public int deleteUser(User user) {
        System.out.println("进入service层");
        return userDao.deleteUser(user);
    }
    @Override
    public int insertUser(User user) {
        System.out.println("进入service层");
        return userDao.insertUser(user);
    }
    @Override
    public int updateUser(User user) {
        System.out.println("进入service层");
        return userDao.updateUser(user);
    }

}
